<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-docid" class="control-label col-xs-12 col-sm-2">{:__('Docid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-docid" data-rule="required" data-source="eduadmin/userdoc/selectpage" data-params='' data-field="username" class="form-control selectpage"
                name="row[docid]" type="text" value="{$row.docid}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-branchids" class="control-label col-xs-12 col-sm-2">{:__('Branch')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-branchids" data-rule="required" data-source="branch/selectpage" data-multiple="false" class="form-control"
                name="row[branchids]" type="text" value="{$row.branchids}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-courseid" class="control-label col-xs-12 col-sm-2">{:__('Courseid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-courseid" data-rule="required" data-source="eduadmin/Course/selectpage" class="form-control"
                name="row[courseid]" type="text" value="{$row.courseid}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-starttime" class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-starttime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true"
                name="row[starttime]" type="text" value="{$row.starttime|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-endtime" class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-endtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true"
                name="row[endtime]" type="text" value="{$row.endtime|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-classcount" class="control-label col-xs-12 col-sm-2">{:__('Classcount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-classcount" class="form-control" name="row[classcount]" type="number" value="{$row.classcount}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-classprice" class="control-label col-xs-12 col-sm-2">{:__('Classprice')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-classprice" class="form-control" step="0.01" name="row[classprice]" type="number" value="{$row.classprice}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-totalamount" class="control-label col-xs-12 col-sm-2">{:__('Totalamount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-totalamount" class="form-control" step="0.01" name="row[totalamount]" type="number" value="{$row.totalamount}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-paymount" class="control-label col-xs-12 col-sm-2">{:__('Paymount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-paymount" class="form-control" step="0.01" name="row[paymount]" type="number" value="{$row.paymount}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-paystatus" class="control-label col-xs-12 col-sm-2">{:__('Paystatus')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="paystatusList" item="vo"}
                <label for="row[paystatus]-{$key}">
                    <input id="row[paystatus]-{$key}" name="row[paystatus]" type="radio" value="{$key}" {in name="key" value="$row.paystatus"
                        }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-property" class="control-label col-xs-12 col-sm-2">{:__('Property')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-property" data-source="baseadmin/teacherproperty/selectpage" data-params='' data-multiple="true" class="form-control selectpage"
                name="row[property]" type="text" value="{$row.property}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-description" class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-description" class="form-control editor" rows="5" cols="50" name="row[description]">{$row.description}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-followteacher" class="control-label col-xs-12 col-sm-2">{:__('Followteacher')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-followteacher" data-rule="required" data-source="auth/admin/selectpage" data-params='' data-field='nickname' class="form-control selectpage" name="row[followteacher]" type="text" value="{$row.followteacher}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}">
                    <input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"
                        }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-createtime" class="control-label col-xs-12 col-sm-2">{:__('Createtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-createtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"
                name="row[createtime]" type="text" value="{$row.createtime|datetime}" readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label for="c-createby" class="control-label col-xs-12 col-sm-2">{:__('Createby')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-createby" class="form-control" name="row[createby]" type="text" value="{$row.createby}" readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label for="c-updatetime" class="control-label col-xs-12 col-sm-2">{:__('Updatetime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-updatetime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"
                name="row[updatetime]" type="text" value="{$row.updatetime|datetime}" readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label for="c-updateby" class="control-label col-xs-12 col-sm-2">{:__('Updateby')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-updateby" class="form-control" name="row[updateby]" type="text" value="{$row.updateby}" readonly="readonly">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>